package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.ConfirmGoodBeen;
import cn.xfdzx.android.apps.shop.bean.FamilyBuyBeen;
import cn.xfdzx.android.apps.shop.bean.FoundGoodTitleBeen;
import cn.xfdzx.android.apps.shop.bean.HomeRetailBeen;
import cn.xfdzx.android.apps.shop.bean.NearShopBeen;
import cn.xfdzx.android.apps.shop.contract.HomeRetailContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;
import retrofit2.http.Query;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class HomeRetailModel implements HomeRetailContract.Model {



    @Override
    public Flowable<ConfirmGoodBeen> addCar(String is_new, String uniqueId, String productId, String cartNum) {
        return  RetrofitClient.getInstance().getApi().confirmGood(is_new,uniqueId,productId,cartNum);
    }

    @Override
    public Flowable<FoundGoodTitleBeen> initTitle(String pid, String index_status) {
        return RetrofitClient.getInstance().getApi().foundGoodTitle(pid,index_status);
    }
    @Override
    public Flowable<HomeRetailBeen> initData(  ) {
        return RetrofitClient.getInstance().getApi().indexDataSales();
    }

    @Override
    public Flowable<FamilyBuyBeen> familyBuy(String sales_model) {
        return RetrofitClient.getInstance().getApi().familyBuy(sales_model);
    }





}
